
import ToolBar from './ToolBar';
class EHeader extends React.Component {
  render() {
    const {  
      title, 
      type, 
      settingData,  
      toolSetting, 
      moreBtnClick, 
      doSave, 
      doRefresh, 
      onSettingBtnClick, 
      dialogHeight 
    } = this.props;
    return (
      <div className='com-e-header'>
        <div className='title'>{title}</div>
        <ToolBar ecId={`${this && this.props && this.props.ecId || ''}_ToolBar@9yph08`} 
          title={title}
          type={type}
          settingData={settingData} 
          toolSetting={toolSetting}
          moreBtnClick={moreBtnClick}
          doSave={doSave}
          doRefresh={doRefresh}
          dialogHeight={dialogHeight}
          onSettingBtnClick={onSettingBtnClick}
          />
      </div>
    )
  }
}

export default EHeader